home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / escape.swf / scripts / frame_1 / PlaceObject2_55_57 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-23  |  1014 b   |  60 lines

  1. onClipEvent(enterFrame){
  2.    if(nop > 0)
  3.    {
  4.       nop -= 1;
  5.    }
  6.    if(Key.isDown(39))
  7.    {
  8.       chk_r = 1;
  9.    }
  10.    else
  11.    {
  12.       chk_r = 0;
  13.    }
  14.    if(Key.isDown(37))
  15.    {
  16.       chk_l = 1;
  17.    }
  18.    else
  19.    {
  20.       chk_l = 0;
  21.    }
  22.    if(_root.target_s == 1 && nop == 0)
  23.    {
  24.       if(chk_r == 1 && chk_l == 0)
  25.       {
  26.          _X = _root.chara02._x;
  27.          _root.target_s = 2;
  28.          nop = 4;
  29.       }
  30.    }
  31.    if(_root.target_s == 2 && nop == 0)
  32.    {
  33.       if(chk_r == 1 && chk_l == 0)
  34.       {
  35.          _X = _root.chara03._x;
  36.          _root.target_s = 3;
  37.          nop = 4;
  38.       }
  39.       if(chk_r == 0 && chk_l == 1)
  40.       {
  41.          _X = _root.chara01._x;
  42.          _root.target_s = 1;
  43.          nop = 4;
  44.       }
  45.    }
  46.    if(_root.target_s == 3 && nop == 0)
  47.    {
  48.       if(chk_r == 0 && chk_l == 1)
  49.       {
  50.          _X = _root.chara02._x;
  51.          _root.target_s = 2;
  52.          nop = 4;
  53.       }
  54.    }
  55.    if(Key.isDown(83))
  56.    {
  57.       speedY -= sp;
  58.    }
  59. }
  60.